package com.beeantec.jnrerc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.beeantec.jnrerc.dto.request.MemberExamReqDTO;
import com.beeantec.jnrerc.dto.response.AdminExamRecRespDTO;
import com.beeantec.jnrerc.dto.response.MemberExamRespDTO;
import com.beeantec.jnrerc.entity.MemberExam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* <p>
* 考试记录Mapper
* </p>
*
* @author Anthony
* @since 2020-09-21 15:13
*/
@Mapper
public interface MemberExamMapper extends BaseMapper<MemberExam> {

    /**
     * 我的考试分页
     * @param page
     * @param query
     * @return
     */
    IPage<MemberExamRespDTO> paging(Page page, @Param("query") MemberExamReqDTO query);

    /**
     * 考试分页
     * @param page
     * @param memberId
     * @return
     */
    IPage<AdminExamRecRespDTO> admin_paging(Page page, @Param("query") Integer memberId);


}
